package com.lb.pdm.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * <p>
 * 证件信息表
 * </p>
 *
 * @author pdm
 * @since 2025-10-29
 */
@Data
@TableName("certificate_info")
@Schema(name = "CertificateInfo对象", description = "证件信息表")
public class CertificateInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "证件ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "人员ID")
    @TableField("person_id")
    private Long personId;

    @Schema(description = "证件类型")
    @TableField("certificate_type")
    private String certificateType;

    @Schema(description = "证件号码")
    @TableField("certificate_number")
    private String certificateNumber;

    @Schema(description = "签发日期")
    @TableField("issue_date")
    private Date issueDate;

    @Schema(description = "有效期至")
    @TableField("expire_date")
    private Date expireDate;

    @Schema(description = "签发机关")
    @TableField("issue_authority")
    private String issueAuthority;

    @Schema(description = "签发地点")
    @TableField("issue_place")
    private String issuePlace;

    @Schema(description = "状态：1-有效，2-过期，3-挂失，4-注销")
    @TableField("status")
    private Byte status;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Schema(description = "创建人ID")
    @TableField("create_by")
    private Long createBy;

    @Schema(description = "更新人ID")
    @TableField("update_by")
    private Long updateBy;
}
